import { MockMethod } from 'vite-plugin-mock'
const baseUrl = '/viteApp/api/mock';

export default [
	{
		url: baseUrl + "/getSlider",
		method: "get",
		response: () => {
			return {
				code: 0,
				message: "ok",
				data: [
					{
						url: 'https://gimg2.baidu.com/image_search/src=http%3A%2F%2Fimg.zcool.cn%2Fcommunity%2F015a1758afdb18a801219c77456b33.jpg%401280w_1l_2o_100sh.jpg&refer=http%3A%2F%2Fimg.zcool.cn&app=2002&size=f9999,10000&q=a80&n=0&g=0n&fmt=auto?sec=1651891940&t=037355ca8e46a967401f8d3c4192511f',
					},
					{
						url: 'https://gimg2.baidu.com/image_search/src=http%3A%2F%2Fimg.zcool.cn%2Fcommunity%2F01e35258292123a84a0e282b48d5e0.jpg%401280w_1l_2o_100sh.jpg&refer=http%3A%2F%2Fimg.zcool.cn&app=2002&size=f9999,10000&q=a80&n=0&g=0n&fmt=auto?sec=1651891963&t=cc644a6a110571b7141431ab48065ce5',
					},
					{
						url: 'https://gimg2.baidu.com/image_search/src=http%3A%2F%2Fimg.zcool.cn%2Fcommunity%2F0173525c1caa5ea8012029ac484cc5.jpg%402o.jpg&refer=http%3A%2F%2Fimg.zcool.cn&app=2002&size=f9999,10000&q=a80&n=0&g=0n&fmt=auto?sec=1651892039&t=2d5e54563b32f8ad6b0c6f5016b9c563'
					}
				],
			};
		},
	},
	{
		url: baseUrl + "/getGridList",
		method: "get",
		response: () => {
			return {
				code: 0,
				message: "ok",
				data: [
					{
						text: '超市便利',
						icon: 'photo-o',
						dot: false,
						badge: '',
						to: '/supermake',
						iconColor: '#ffffff',
						bgColor: { fontColor: '#5290E5', backColor: '#74C5FA' },
					},
					{
						text: '菜市场',
						icon: 'photo-o',
						dot: false,
						badge: '',
						to: '',
						iconColor: '#1989fa',
						bgColor: { fontColor: '#FF5963', backColor: '#FF85AC' },
					},
					{
						text: '水果店',
						icon: 'photo-o',
						dot: false,
						badge: '',
						to: '',
						iconColor: '#1989fa',
						bgColor: { fontColor: '#F97C41', backColor: '#F7B456' },
					},
					{
						text: '鲜花绿植',
						icon: 'photo-o',
						dot: false,
						badge: '',
						to: '',
						iconColor: '#1989fa',
						bgColor: { fontColor: '#1EC89F', backColor: '#85F5D8' },
					},
					{
						text: '医药健康',
						icon: 'photo-o',
						dot: false,
						badge: '',
						to: '',
						iconColor: '#1989fa',
						bgColor: { fontColor: '#E2AD61', backColor: '#FBC792' },
					}
				]
			}
		}
	},
	{
		url: baseUrl + "/getShopList",
		method: "get",
		response: () => {
			return {
				code: 0,
				message: "ok",
				data: [
					{
						shopLogo: "",
						shopname: "沃尔玛",
						saleroom: "1万",
						sendStartMoney: 0,
						freight: 5,
						activity: "VIP尊享满89元减4元运费券（每月3张）",
						commodityList: [
							{
								commodityPic: "https://img1.baidu.com/it/u=1695724514,2427997288&fm=253&fmt=auto&app=138&f=JPEG?w=499&h=333",
								commodityName: "番茄",
								commodityDiscount: 22.5,
								commoditySpecification: "份",
								commodityweight:"400g"
							},
							{
								commodityPic: "",
								commodityName: "超甜橙子",
								commodityPrice: 28.9,
								commodityDiscount: 24.8,
								commoditySpecification: "2份",
								commodityweight: "200g"
							},	{
								commodityPic: "",
								commodityName: "超甜草莓",
								commodityPrice: 38.2,
								commodityDiscount: 18.5,
								commoditySpecification: "粉",
								commodityweight: "600g"
							}
						]
					},
					{
						shopLogo: "",
						shopname: "山姆会员商店",
						saleroom: "2千",
						sendStartMoney: 0,
						freight: 5,
						activity: "联合利华洗护满10减5",
						commodityList: [
							{
								commodityPic: "",
								commodityName: "番茄",
								commodityPrice: 33.6,
								commoditySpecification: "份"
							},
							{
								commodityPic: "",
								commodityName: "超甜橙子",
								commodityPrice: 28.9,
								commoditySpecification: "400g"
							}
						]
					},
					{
						shopLogo: "",
						shopname: "联华超市",
						saleroom: "6千",
						sendStartMoney: 0,
						freight: 5,
						activity: "全场商品2件9折，3件88折",
						commodityList: [
							{
								commodityPic: "",
								commodityName: "番茄",
								commodityPrice: 33.6,
								commoditySpecification: "份"
							},
							{
								commodityPic: "",
								commodityName: "超甜橙子",
								commodityPrice: 28.9,
								commoditySpecification: "400g"
							}
						]
					}
				]
			}
		}
	}
] as MockMethod[]